/*  Clean and tight extensions menu */
#unified-extensions-panel #unified-extensions-view {
    width: 100% !important;
}

#unified-extensions-view{
    --uei-icon-size: 16px; /*  Change icon size */
    --firefoxcss-number-of-extensions-in-a-row: 4; /*  Increase to the number of icons you want in one row */
}

#unified-extensions-view:before{
  content: "Extensions";
  text-align: left !important;
  font-weight: bold !important;
  padding-top: 9px !important;
  padding-bottom: 4px !important;
  padding-left: 14px !important;
  }

#unified-extensions-view .panel-header,
#unified-extensions-view .panel-header .panel-header-icon,
#unified-extensions-view .panel-header + toolbarseparator,
#unified-extensions-view .panel-subview-body + toolbarseparator,
#unified-extensions-view #unified-extensions-manage-extensions .toolbarbutton-icon,
#unified-extensions-view .unified-extensions-item-menu-button.subviewbutton,
#unified-extensions-view .unified-extensions-item-action-button .unified-extensions-item-contents{
    visibility: collapse !important;
}

#unified-extensions-view #unified-extensions-manage-extensions .toolbarbutton-text {
    margin: 0 !important;
    padding: 0 !important;
    text-align: center !important;
    }

#unified-extensions-view .panel-subview-body {
    padding: 2px !important;
}

#unified-extensions-view .unified-extensions-item .unified-extensions-item-icon, 
#unified-extensions-view .unified-extensions-item .toolbarbutton-badge-stack {
    margin-inline-end: 0px !important;
}

#unified-extensions-view #overflowed-extensions-list,
#unified-extensions-view #unified-extensions-area,
#unified-extensions-view .unified-extensions-list {
    display: grid !important;
    grid-template-columns: repeat(var(--firefoxcss-number-of-extensions-in-a-row),auto);
    justify-items:left !important;
    align-items:left !important;
}

#unified-extensions-view .unified-extensions-list .unified-extensions-item,
#unified-extensions-view .unified-extensions-list{
     max-width: max-content;
     max-height: max-content;
}

#unified-extensions-view #unified-extensions-area {
/*     padding-top: 0px !important; */
/*     padding-bottom: 0px !important; */
/*     border-bottom: 0px solid #aeaeae33 !important; */
}

#unified-extensions-view .unified-extensions-list {
/*     border-top: 1px solid #aeaeae33 !important; */
}

#wrapper-edit-controls:is([place="palette"], 
[place="panel"]) > #edit-controls, #wrapper-zoom-controls:is([place="palette"], 
[place="panel"]) > #zoom-controls, :is(panelview, #widget-overflow-fixed-list) .toolbaritem-combined-buttons {
  margin: 5px !important;
}
